<?php
class UserSetupAction extends FrontendAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'index';
		$this->data['menu']		= 'user';
	}

	public function execute()
	{
		if($this->data['user']['username']!='')
		{
			header('Location:'.C('LtUrl')->generate('User', 'Index'));
		}
		
		$seoTitle		= '会员注册';
		$seoTitle		.= '-'.$this->data['site']['site_name'];
		
		$this->data['seo']['title']			= $seoTitle;
	}
}
